﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IntoMes.Global
{
    internal class Fields
    {
        /// <summary>
        /// plc ip
        /// </summary>
        public static readonly string PlcIp = ConfigurationManager.AppSettings["PlcIP"].ToString();
        public static readonly string GP12Ip = ConfigurationManager.AppSettings["GP12Ip"].ToString();
        public static readonly string JZIp = ConfigurationManager.AppSettings["JZIp"].ToString();
        /// <summary>
        /// plc data length
        /// </summary>
        public static readonly int DataLen = Convert.ToInt32(ConfigurationManager.AppSettings["DataLen"]);
        /// <summary>
        /// plc读取的db1地址
        /// </summary>
        public static readonly int DbAddr1 = Convert.ToInt32(ConfigurationManager.AppSettings["DbAddr1"]);
        public static readonly int DbAddr2 = Convert.ToInt32(ConfigurationManager.AppSettings["DbAddr2"]);
        public static readonly int DbAddr3 = Convert.ToInt32(ConfigurationManager.AppSettings["DbAddr3"]);
        public static readonly int DbAddr4 = Convert.ToInt32(ConfigurationManager.AppSettings["DbAddr4"]);
        public static readonly int DbAddr5 = Convert.ToInt32(ConfigurationManager.AppSettings["DbAddr5"]);
        public static readonly int DbAddr6 = Convert.ToInt32(ConfigurationManager.AppSettings["DbAddr6"]);

        /// <summary>
        /// 读取客户可以修改的值
        /// </summary>
        public static readonly int Month = Convert.ToInt32(ConfigurationManager.AppSettings["Month"]);
        public static readonly int YearPlan = Convert.ToInt32(ConfigurationManager.AppSettings["YearPlan"]);
        public static readonly int MonthPlan = Convert.ToInt32(ConfigurationManager.AppSettings["MonthPlan"]);
        public static readonly int WeekPlan = Convert.ToInt32(ConfigurationManager.AppSettings["WeekPlan"]);


        public static readonly string StopTimeUrl = ConfigurationManager.AppSettings["StopTimeUrl"].ToString();

    }
}
